package utils;

public class TextUtils {

	public static boolean isMid(String str) {
		return str.startsWith("/m/");
	}
	
	public static Double parseNumericString(String str) {
		try {
			double num = Double.parseDouble(str);
			return new Double(num);
		} catch (NumberFormatException ex) {
			return null;
		}
	}
	
	public static Integer parseIntegerString(String str) {
		try {
			int num = Integer.parseInt(str);
			return new Integer(num);
		} catch (NumberFormatException ex) {
			return null;
		}
	}
}
